package org.third.integration.suite.idm.hpsso;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestJce {
    public static void main(String[] args) {
         
        try {
//            String initData = "332343adfasdf234";
//            byte[] salt = initData.getBytes();
//            PBEKeySpec pbeKeySpec;
//            pbeKeySpec = new PBEKeySpec(initData.toCharArray(), initData.getBytes(), 12);
//
//            String pbeCryptoAlgorithmName = "PBEWithMD5ANdTripleDES";
//            SecretKeyFactory keyFact;
//            keyFact = SecretKeyFactory.getInstance(pbeCryptoAlgorithmName);
//
//            Key key;
//            key = keyFact.generateSecret(pbeKeySpec);
//
//            Cipher cipher = Cipher.getInstance(pbeCryptoAlgorithmName);
//            salt = new byte[8];
//            System.arraycopy(initData.getBytes(), 0, salt, 0, salt.length);
//            cipher.init(Cipher.ENCRYPT_MODE, key, new PBEParameterSpec(salt, 20));
            
           Logger logger= LoggerFactory.getLogger(TestJce.class);
           logger.debug("zxcv");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
